package com.hht.study.designModel.single;

/**
 * @author hht
 * @date 2022/3/14
 */
public class single {

    private static volatile single instance;

    private single(){}

    public static single getInstance(){
        if(instance==null){
            synchronized (single.class) {
                if(instance==null){
                    instance = new single();
                }
            }
        }
        return instance;
    }
}
